<template>
  <Modal v-model="whetherPop" width="32" :closable="false" :mask-closable="false" class-name="vertical-center-modal">
    <div slot="header" class="head-sty">
      <div class="title">{{ $t('user.tip_title') }}</div>
      <div></div>
    </div>
    <div class="content-sty">
      <div class="tip-tit">{{ $t('wayBill.pop_content_text1') }}</div>
      <div class="sub-text">{{ $t('wayBill.pop_content_text2') }}</div>
      <div class="sub-text sty-text"><span class="yuan"></span><span>{{ $t('wayBill.pop_content_text3') }}</span></div>
      <div class="sub-text sty-text"><span class="yuan"></span><span>{{ $t('wayBill.pop_content_text4') }}</span></div>
      <div class="sub-text sty-text"><span class="yuan"></span><span>{{ $t('wayBill.pop_content_text5') }}</span></div>
      <div class="sub-text">{{ $t('wayBill.pop_content_text6') }}</div>
    </div>
    <div slot="footer" class="footer-wrap">
      <div class="cancel-text" @click="yesBtn()">{{ $t('wayBill.true') }}</div>
      <div class="confirm-text" @click="noBtn()">{{ $t('wayBill.false') }}</div>
    </div>
  </Modal>
</template>
<script>
import { mapState } from "vuex";
export default {
  data() {
    return {
      whetherPop: false,
    }
  },
  computed: {
    ...mapState({
      userCurrency: state => state.user.userCurrency,
      userInfo: state => state.user.userInfo
    })
  },
  methods: {
    open() {
      this.whetherPop = true;

    },
    closeMet() {
      this.whetherPop = false;
    },
    yesBtn() {
      this.$emit('yesChange');
    },
    noBtn() {
      this.$emit('noChange');
    }
  }
}
</script>

<style lang="less" scoped>
:deep(.ivu-modal-content) {
  background: #FFFFFF !important;
  border-radius: 12px !important;

  .ivu-modal-header {
    border: none;
    padding: 32px 32px;
  }

  .ivu-modal-body {
    padding: 0 32px 0 32px;
  }

  .ivu-modal-footer {
    border: none;
    padding: 32px;
  }
}

.vertical-center-modal {
  display: flex;
  align-items: center;
  justify-content: center;

  .head-sty {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .title {
      font-weight: 600;
      font-size: 24px;
      color: #1E1714;
      line-height: 28px;
    }

    .close {
      color: #1E1714;
      font-size: 36px;
      font-weight: 500;
      cursor: pointer;
    }
  }

  .content-sty {

    .tip-tit {
      font-weight: 500;
      font-size: 20px;
      color: #1E1714;
    }

    .sub-text {
      font-weight: 400;
      font-size: 16px;
      color: #1E1714;
      display: inline-flex;
      gap: 10px;

      .yuan {
        width: 6px;
        height: 6px;
        background: #1E1714;
        border-radius: 50%;
        display: block;
        margin-top: 10px;
      }
    }

    .sty-text {
      margin-left: 4px;
    }
  }

  .footer-wrap {
    display: flex;
    justify-content: end;
    gap: 24px;

    .cancel-text {
      min-width: 112px;
      height: 46px;
      padding: 12px 30px;
      border-radius: 8px 8px 8px 8px;
      border: 1px solid #E5E5E5;
      font-family: Open Sans, Open Sans;
      font-weight: 400;
      font-size: 16px;
      color: #1E1714;
      line-height: 19px;
      cursor: pointer;
      text-align: center;
    }

    .confirm-text {
      min-width: 112px;
      height: 46px;
      padding: 12px 30px;
      background: #F21473;
      border-radius: 8px 8px 8px 8px;
      font-family: Open Sans, Open Sans;
      font-weight: 600;
      font-size: 16px;
      color: #FFFFFF;
      line-height: 19px;
      cursor: pointer;
      text-align: center;
    }
  }
}
</style>
